home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / BoxPaint+ - non stereo / headers / BoxPaint_documentStructure.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.3 KB  |  48 lines  |  [TEXT/CWIE]

  1. /*  BoxPaint_documentStructure.h                                                                            
  2.  
  3.     This contains all the document-specific code.
  4.                                                                                     
  5.     Michael Bishop - August 21 1996                                                    
  6.     (c)1994-96 Apple Computer Inc., All Rights Reserved                                
  7.  
  8. */
  9.  
  10. #ifndef _BP_DOCUMENTSTRUCTURE_H_
  11. #define _BP_DOCUMENTSTRUCTURE_H_
  12.  
  13. #include    <QuickDraw.h>
  14.  
  15. #include    "QD3D.h"
  16.  
  17. #include    "BoxPaint_cursor3d.h"
  18. #include    "BoxPaint_texture.h"
  19.  
  20. struct _documentRecord {
  21.  
  22.     long            fReferenceCount;        /*    reference count    */
  23.  
  24.     TQ3ViewObject    fView ;                    /*  the view for the scene */
  25.     TQ3GroupObject    fModel ;                /*  object in the scene being modelled */
  26.     TQ3StyleObject    fInterpolation ;        /*  interpolation style used when rendering */
  27.     TQ3StyleObject    fBackFacing ;            /*  whether to draw shapes that face away from the camera */
  28.     TQ3StyleObject    fFillStyle ;            /*  whether drawn as solid filled object or decomposed to components */
  29.     TQ3Matrix4x4    fRotation;                /*  the transform for the model */
  30.     
  31.     TextureHdl        fTexture;                /*    The paintable texture    */
  32.     
  33.     Cursor3DHdl        fCursor3D;                /*    The Cursor in Mindblowing 3D!!    */
  34.  
  35.     WindowPtr        fWindow ;                /*    the window associated with this document */
  36.     
  37. #ifdef    STEREO
  38.  
  39.     WindowPtr        fWindow_Left ;            /*    Left Eye    */
  40.     WindowPtr        fWindow_Right ;            /*    Right Eye    */
  41.  
  42. #endif    /*    STEREO    */
  43.         
  44. } ;
  45.  
  46.  
  47. #endif
  48.